import Layout from '@/layout/index.vue'

const saleRouter = [{
  path: '/sale',
  component: Layout,
  isShow: true,
  redirect: 'noRedirect',
  name: 'sale',
  alwaysShow: true,
  meta: { title: '销售管理', icon: 'Money', },
  children: [
    {
      path: 'sale',
      component: () => import('@/views/sale/sale/sale.vue'),
      name: 'sale',
      meta: { title: '销售单据', permissions: ['wms-order:sale:'], icon: 'document' }
    },
    {
      path: 'deliveryApply',
      component: () => import('@/views/sale/deliveryApply/deliveryApply.vue'),
      name: 'deliveryApply',
      meta: { title: '发货申请单', permissions: ['wms-order:deliveryApply:'], icon: 'document' }
    },
    {
      path: 'delivery',
      component: () => import('@/views/sale/delivery/delivery.vue'),
      name: 'delivery',
      meta: { title: '发货单据', permissions: ['wms-order:delivery:'], icon: 'document' }
    }
    // {
    //   path: 'customer',
    //   component: () => import('@/views/sale/customer/customer.vue'),
    //   name: 'customer',
    //   meta: { title: '客户管理', permissions: ['wms:customer:'], icon: 'document' }
    // }
  ]
}]

export default saleRouter
